package ma.jee.portailReservation.service.announce;

import ma.jee.portailReservation.persistence.announce.TransportCompany;
import ma.jee.portailReservation.persistence.announce.Travel;

import java.io.Serializable;
import java.util.Set;

/**
 * Created by IntelliJ IDEA.
 * User: soufiane
 * Date: 02/01/12
 * Time: 23:53
 * To change this template use File | Settings | File Templates.
 */
public class DisplayTransportCompany implements Serializable{

    private TransportCompany transportCompany;

    public DisplayTransportCompany(TransportCompany transportCompany) {
        this.transportCompany = transportCompany;
    }

    public long getIdTransportCompany() {
        return transportCompany.getIdTransportCompany();
    }

    public void setIdTransportCompany(long id) {
        this.transportCompany.setIdTransportCompany(id);
    }

    public String getNameCompany() {
        return transportCompany.getNameCompany();
    }

    public void setNameCompany(String nameCompany) {
        this.transportCompany.setNameCompany(nameCompany);
    }

    public String getAddressCompany() {
        return transportCompany.getAddressCompany();
    }

    public void setAddressCompany(String addressCompany) {
        this.transportCompany.setAddressCompany(addressCompany);
    }

    public Set<Travel> getTravels() {
        return transportCompany.getTravels();
    }

    public void setTravels(Set<Travel> travels) {
        this.transportCompany.setTravels(travels);
    }
}
